package jchat.genral;

import java.text.SimpleDateFormat;

import android.content.Context;

public class Users {
	private String Name;
	private String Message;
	boolean isMine;
	private boolean messagesent;
	private boolean messagesrecvied;
	private String url;
	private String type;
	Context c;
	//private String time;
	public Users(Context c)
	
	{
      this.c=c;		
	}
	Users(String Name,String Message,boolean ismine,String type,boolean status)
	{
		this.isMine=ismine;
		this.Name=Name;
		this.Message=Message;
		this.type=type;
		this.messagesent=status;
	}
	public String getUserName()
	{
		return Name;
	}
	public String getMessage()
	{
		return Message;
	}
	public String getcurrenttime()
	{
		  String now = new SimpleDateFormat("hh:mm aa").format(new java.util.Date().getTime());
         System.out.println("time in 12 hour format : " + now);
          return now;
	}
	public boolean getmine()
	{
		return isMine;
	}
public void seturl(String url)
{
	this.url=url;
	}
public String geturl()
{
	return url;
	}
public String getType() {
	return type;
}
public void setType(String type) {
	this.type = type;
}
public boolean getMessagesent() {
	return messagesent;
}
public void setMessagesent(boolean messagesent) {
	this.messagesent = messagesent;
}
public boolean getMessagesrecvied() {
	return messagesrecvied;
}
public void setMessagesrecvied(boolean messagesrecvied) {
	this.messagesrecvied = messagesrecvied;
}
}

